﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Collections.ObjectModel;

namespace University.Workshop.WinApp
{
    public partial class GraficAnalysisReport : Form
    {
        public GraficAnalysisReport(Collection<string> component, Collection<string> componentOne)
        {
            InitializeComponent();
            
            double[] aux =new double[component.Count];
            int i=0;
            foreach(string aux1 in component){
            aux[i]=Convert.ToDouble(aux1,System.Globalization.CultureInfo.CurrentCulture);
                i++;
            }
                    
            double[] yValues = aux;
            string[] xNames =new string[componentOne.Count];
            i=0;
            foreach(string aux1 in componentOne){
            xNames[i]=aux1;
                i++;
            }
            chart1.Series[0].Points.DataBindXY(xNames, yValues);
        }
    }
}
